<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.MediaGalleries._default" MasterPageFile="~/ControlPanel/Masters/MediaGalleries.master" %>

<asp:Content ContentPlaceHolderId="TopLeft" runat="server"></asp:Content>

<asp:Content ContentPlaceHolderId="TaskRegion" runat="Server">
    <script type="text/javascript" src="../charts/swfobject.js"></script>
	<table style="width: 100%">
        <tr>
            <td style="width: 300px; padding: 20px" valign="top">
                <div class="CommonListArea">
                   <table width="100%" cellpadding="0">
                   <tr>
                        <td>
                            <div style="float: left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/blog-post.gif" />
                            </div>
                            
                            <strong>
	                        <asp:HyperLink runat="server" NavigateUrl="~/ControlPanel/MediaGalleries/fileeditor.aspx?SelectedNavItem=NewFile">
	                            <CP:ResourceControl runat="server" ResourceName="CP_MediaGalleries_Upload_File" />
	                        </asp:HyperLink>
	                        </strong>                        
	                    </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="float:left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/comments.gif" />
                            </div>
                            
                            <strong>
	                        <asp:HyperLink runat="server" NavigateUrl="~/controlpanel/MediaGalleries/comments.aspx?SelectedNavItem=ReviewComments&ip=Unpublished">
	                            <CP:ResourceControl runat="server" ResourceName="CP_MediaGalleries_Review_Comments" />
	                        </asp:HyperLink>
	                        </strong>
                        </td>
                    </tr>
                    <tr>
                        <td>
                             <div style="float:left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/control-panel.gif" />
                            </div>
                            
                            <strong>
	                        <asp:HyperLink runat="server" NavigateUrl="~/ControlPanel/MediaGalleries/FileOptions.aspx">
	                            <CP:ResourceControl runat="server" ResourceName="CP_MediaGalleries_AdvancedFileSettings" />
	                        </asp:HyperLink>
	                        </strong>
                        </td>
                    </tr>
                    </table>
                    
                </div>
            </td>
            
            <td valign="top" style="padding-left:20px;">
                <h3>Views of your media gallery (past 30 days)</h3>
	            <div id="linechart">
		            <strong>Unable to display the chart</strong>
	            </div>

	            <script type="text/javascript">
		            // <![CDATA[		
		            var so = new SWFObject("../charts/amline.swf", "amline", "100%", "200", "8", "#FFFFFF");
		            so.addVariable("path", "../charts/");
		            so.addVariable("settings_file", escape("../charts/settings_MediaGallery_ViewsByDay.xml"));
		            so.addVariable("data_file", escape("../charts/charts.ashx?report=ViewsByDay&sid=<%= CurrentMediaGallery.SectionID %>"));
		            so.addVariable("preloader_color", "#999999");
		            so.write("linechart");
		            // ]]>
	            </script>

                <h3>Views of recent files</h3>
                <div>
                    <div id="barchart">
                        <strong>Unable to display the chart</strong>
                    </div>
                    <script type="text/javascript">
                    //<![CDATA[
                        var so = new SWFObject("../charts/amcolumn.swf", "amcolumn", "100%", "230", "8", "#FFFFFF");
                        so.addVariable("path", "../charts/");
                        so.addVariable("settings_file", escape("../charts/settings_MediaGallery_RecentFiles.xml"));
                        so.addVariable("data_file", escape("../charts/charts.ashx?report=FileViewsBySection&sid=<%= CurrentMediaGallery.SectionID %>"));
                        so.addVariable("preloader_color", "#999999");
                        so.write("barchart");
                    // ]]>
                    </script>
                </div>
            </td>
        </tr>
    </table>
	
	<div style="float:none; clear: both;"></div>
</asp:Content>